#pragma once

#include "../umlmodel_global.h"

#include <memory>
#include <vector>

#include "BehavioralFeature.h"

using std::make_shared;
using std::shared_ptr;
using std::vector;

namespace uml {
class Signal;

/// <summary>
/// Reception
/// A Reception is a declaration stating that a Classifier is prepared to react to
/// the receipt of a Signal.
/// </summary>
class UMLMODEL_EXPORT Reception : public BehavioralFeature {

public: // Constructors and destructors
    explicit Reception(const QString& umlType="uml::Reception");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Properties
    /// <summary>
    /// signal getter
    /// The Signal that this Reception handles.
    /// </summary>
    shared_ptr<Signal> signal() const;

    /// <summary>
    /// signal setter
    /// The Signal that this Reception handles.
    /// </summary>
    void setSignal(shared_ptr<Signal> value);

private: // Fields
    /// <summary>
    /// signal
    /// The Signal that this Reception handles.
    /// </summary>
    shared_ptr<Signal> signal_;

};

} // namespace uml
